package com.shgbit.sdis.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.shgbit.sdis.control.DemoController;

/**
 * 日志输出工具类
 * @author liulinqing
 * 下午1:19:46
 */
public class LogUtils {

	/*日志常量*/
	public static String Log_Constant  = "";
	protected static Logger logger      = LoggerFactory.getLogger(DemoController.class);
	
	/**
	 * 信息日志输出方法
	 * logType: info 输出info日志
	 * logType: error 输出error日志
	 */
	public static void LogOut(String logType){
		switch(logType){
			case "info":
				logger.info(Log_Constant);
				break;
			case "error":
				logger.error(Log_Constant);
				break;
			default:
				logger.info(Log_Constant);
				break;
		}
	}
	
}
